/*
 * Vent_ModDeuda.java
 *
 * Created on 8 de septiembre de 2008, 10:21 AM
 */

package administrador;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author  daniel1
 */
public class Vent_ModSeparado extends javax.swing.JFrame {

    Conexion conexion;
    String codigoCliente;
    Vent_Separaciones ventCC;
   // Vent_CuentasPagar ventCP;
    int numCuenta;
    Usuario user;
        
    
    /** Creates new form Vent_ModDeuda */
    public Vent_ModSeparado(Conexion c,String codigoCliente,int cuentaPendiente,Vent_Separaciones vEnt,Usuario user) {
        conexion=c;
        this.codigoCliente=codigoCliente;
        this.ventCC=vEnt;
        numCuenta=cuentaPendiente;
        this.user=user;
        initComponents();
        cargoDatos();
        setBounds(100,100,462,369);
        setVisible(true);
       
    }
    
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        txt_fechaMax = new com.toedter.calendar.JDateChooser();
        txt_suma = new javax.swing.JTextField();
        txt_monto = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        area = new javax.swing.JTextArea();
        jLabel13 = new javax.swing.JLabel();
        jButton2 = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        txt_saldo = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        txt_cuenta = new javax.swing.JTextField();
        txt_cedula = new javax.swing.JTextField();
        txt_nombre = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        txt_actual = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        txt_resp = new javax.swing.JTextField();
        pass = new javax.swing.JPasswordField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(administrador.AdministradorApp.class).getContext().getResourceMap(Vent_ModSeparado.class);
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jPanel1.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("jPanel1.border.titleFont"), null)); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, 100, 20));

        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N
        jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 60, 80, 20));

        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N
        jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 90, 100, 20));

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Modificar:"));
        jPanel2.setName("jPanel2"); // NOI18N

        jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        txt_fechaMax.setName("txt_fechaMax"); // NOI18N

        txt_suma.setName("txt_suma"); // NOI18N
        txt_suma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txt_sumaActionPerformed(evt);
            }
        });
        txt_suma.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                txt_sumaKeyReleased(evt);
            }
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txt_sumaKeyTyped(evt);
            }
        });

        txt_monto.setEditable(false);
        txt_monto.setName("txt_monto"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        area.setColumns(20);
        area.setRows(5);
        area.setName("area"); // NOI18N
        jScrollPane1.setViewportView(area);

        jLabel13.setName("jLabel13"); // NOI18N

        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
        jLabel15.setName("jLabel15"); // NOI18N

        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N

        txt_saldo.setName("txt_saldo"); // NOI18N

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel9))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)
                    .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(txt_fechaMax, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                            .addComponent(txt_suma, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel7))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txt_saldo)
                            .addComponent(txt_monto)
                            .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE))
                        .addGap(249, 249, 249)
                        .addComponent(jLabel13)
                        .addGap(37, 37, 37))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(106, 106, 106)
                .addComponent(jLabel13)
                .addGap(92, 92, 92))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)
                        .addComponent(jLabel9))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txt_suma)
                            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txt_monto))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(txt_saldo)
                                .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(txt_fechaMax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel15)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 63, Short.MAX_VALUE)))
                .addContainerGap())
        );

        jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 120, 400, 220));

        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N
        jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 90, 70, 20));

        txt_cuenta.setEditable(false);
        txt_cuenta.setName("txt_cuenta"); // NOI18N
        jPanel1.add(txt_cuenta, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 30, 140, -1));

        txt_cedula.setEditable(false);
        txt_cedula.setName("txt_cedula"); // NOI18N
        jPanel1.add(txt_cedula, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 60, 140, -1));

        txt_nombre.setEditable(false);
        txt_nombre.setName("txt_nombre"); // NOI18N
        jPanel1.add(txt_nombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 90, 140, -1));

        jLabel14.setName("jLabel14"); // NOI18N
        jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 30, -1, 20));

        txt_actual.setEditable(false);
        txt_actual.setName("txt_actual"); // NOI18N
        jPanel1.add(txt_actual, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 30, 70, -1));

        jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
        jLabel16.setName("jLabel16"); // NOI18N
        jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 30, -1, -1));

        jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N
        jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 60, 70, 20));

        txt_resp.setEditable(false);
        txt_resp.setName("txt_resp"); // NOI18N
        jPanel1.add(txt_resp, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 60, 70, -1));

        pass.setText(resourceMap.getString("pass.text")); // NOI18N
        pass.setName("pass"); // NOI18N
        jPanel1.add(pass, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 90, 70, -1));

        getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void txt_sumaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txt_sumaActionPerformed
// TODO add your handling code here:
    
}//GEN-LAST:event_txt_sumaActionPerformed

private void txt_sumaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sumaKeyTyped
// TODO add your handling code here:
    
       
}//GEN-LAST:event_txt_sumaKeyTyped

private void txt_sumaKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_sumaKeyReleased
// TODO add your handling code here:
  char c = evt.getKeyChar();
        if (!(Character.isDigit(c) || (c == java.awt.event.KeyEvent.VK_BACK_SPACE) || (c == java.awt.event.KeyEvent.VK_DELETE))) {
              getToolkit().beep();
              evt.consume();
        }
        int press=evt.getKeyChar();
        
        String textoV=this.txt_suma.toString();
        String toma=txt_suma.getText();
        if(toma.equals("")){
        toma="0";
        }
        
        double valorSumar=0;
        try{
        valorSumar=Double.parseDouble(toma);
        }catch(Exception e){
        }
        
        double valor=Double.parseDouble(txt_actual.getText());
        double resp=valor+valorSumar;
        txt_monto.setText(String.valueOf(resp));
       //System.out.println("Le dista al boton"+valor+" "+txt_suma.getText()+" "+String.valueOf(resp));
        
    
}//GEN-LAST:event_txt_sumaKeyReleased

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
     int opccion=0;
        opccion=JOptionPane.showConfirmDialog(this,"Seguro Desea Modificar este Separado (ingrese contrasena de usuario)?","Alerta",0);
        if(opccion==0){
          
       
      ResultSet r=conexion.consultarBaseLogin("select * from usuario where login like '"+txt_resp.getText()+"' and clave like PASSWORD('"+pass.getText()+"')");
      int num=0;
      num=conexion.obtenerFilas(r);
      
     //System.out.println("El numero de filas es:"+num);
      if(num==0){
            JOptionPane.showMessageDialog(this, "El usuario o clave son Incorrectos", "Informacion", JOptionPane.INFORMATION_MESSAGE);
        } else if(user.privilegio.equals("m")) {
    
        String valorNuevo=txt_monto.getText();
        String obNuevo=area.getText();
        String DATE_FORMAT = "yyyy-MM-dd";//Refer Java DOCS for formats
        java.text.SimpleDateFormat sdf =  new java.text.SimpleDateFormat(DATE_FORMAT);


        String fechaNueva=sdf.format(txt_fechaMax.getDate());

        conexion.actualizarBaseResp("update separado set total="+valorNuevo+", saldo="+txt_saldo.getText()+",observaciones='"+obNuevo+"',fecha='"+fechaNueva+"' where codigo="+numCuenta+" and cod_cliente like '"+codigoCliente+"';");

        ventCC.refrescar();
        this.dispose();
      
      }  
            
            
            
    
    
    
    
    
   }
}//GEN-LAST:event_jButton1ActionPerformed

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
    // TODO add your handling code here:
    int opccion = 0;
    opccion = JOptionPane.showConfirmDialog(this, "Seguro Desea Borrar este Separado?", "Alerta", 0);
    if (opccion == 0) {

        ResultSet r = conexion.consultarBaseLogin("select * from usuario where login like '" + txt_resp.getText() + "' and clave like PASSWORD('" + pass.getText() + "')");
        int num = 0;
        num = conexion.obtenerFilas(r);

       //System.out.println("El numero de filas es:" + num);
        if (num == 0) {
            JOptionPane.showMessageDialog(this, "El usuario o clave son Incorrectos", "Informacion", JOptionPane.INFORMATION_MESSAGE);
        } else if (user.privilegio.equals("m")) {
            conexion.actualizarBaseResp("delete from separado where codigo=" + numCuenta + ";");
            conexion.actualizarBaseResp("delete from dtl_separado where cod_separado=" + numCuenta + ";");
            conexion.actualizarBaseResp("delete from pago_separado where cod_separado=" + numCuenta + ";");
            ventCC.refrescar();
            this.dispose();


        }

    }

}//GEN-LAST:event_jButton2ActionPerformed
    
    public void cargoDatos(){
        
    //Realizo la consulta:
    ResultSet resp=conexion.consultarBase("SELECT * FROM separado where cod_cliente='"+codigoCliente+"' and codigo="+numCuenta+";");
        try {
            resp.beforeFirst();
            resp.next();
            double valor=resp.getDouble(7);
            double saldo=resp.getDouble(8);
            Date fecha=resp.getDate(3);
            String observacion=resp.getString(9);
            
            //Completo los datos en los textfields:
            txt_cuenta.setText(String.valueOf(numCuenta));
            txt_cedula.setText(codigoCliente);
            txt_resp.setText(user.getNombre());
            txt_monto.setText(String.valueOf(valor));
            txt_actual.setText(String.valueOf(valor));
            txt_saldo.setText(String.valueOf(saldo));
            txt_fechaMax.setDate(fecha);
            area.setText(observacion);
            
            //Lleno el nombre de la Empresa:
            resp=conexion.consultarBase("SELECT nombre,apellido FROM cliente where cod_cliente like '"+codigoCliente+"';");
            resp.next();
            String empresa=resp.getString(1)+"/"+resp.getString(1);
            txt_nombre.setText(empresa);
            
            
        } catch (SQLException ex) {
            Logger.getLogger(Vent_ModDeuda.class.getName()).log(Level.SEVERE, null, ex);
        }
    
    
    
    
    
    
    
    
    }
    /**
    * @param args the command line arguments
    */
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea area;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPasswordField pass;
    private javax.swing.JTextField txt_actual;
    private javax.swing.JTextField txt_cedula;
    private javax.swing.JTextField txt_cuenta;
    private com.toedter.calendar.JDateChooser txt_fechaMax;
    private javax.swing.JTextField txt_monto;
    private javax.swing.JTextField txt_nombre;
    private javax.swing.JTextField txt_resp;
    private javax.swing.JTextField txt_saldo;
    private javax.swing.JTextField txt_suma;
    // End of variables declaration//GEN-END:variables

}
